﻿using ApiLib.AppStart;
using SqlSugar;

namespace ApiLib.Models;

/// <summary>
/// 提醒和通知
///</summary>
[Tenant(GlobalConstants.MainDbConfigId), SugarTable("sys_remind_info")]
public class SysRemindInfo
{
    /// <summary>
    ///  
    ///</summary>
    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    /// <summary>
    /// 用户 
    ///</summary>
    [SugarColumn(ColumnName = "user")]
    public string User { get; set; }

    /// <summary>
    /// 数据类型 
    ///</summary>
    [SugarColumn(ColumnName = "data_type")]
    public string DataType { get; set; }

    /// <summary>
    /// 数据ID 
    ///</summary>
    [SugarColumn(ColumnName = "data_id")]
    public int DataId { get; set; }

    /// <summary>
    /// 创建人 
    ///</summary>
    [SugarColumn(ColumnName = "create_user")]
    public string CreateUser { get; set; }
    
    /// <summary>
    /// 创建人名称
    ///</summary>
    [SugarColumn(IsIgnore = true)]
    public string CreateUserName { get; set; }

    /// <summary>
    /// 创建时间 
    ///</summary>
    [SugarColumn(ColumnName = "create_time",InsertServerTime = true)]
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 是否已读 
    ///</summary>
    [SugarColumn(ColumnName = "is_read")]
    public bool IsRead { get; set; }
}